---
title: Diagonal Lines
description: A diagonal line background component
author: harimanok_
---

<ComponentPreview name="background-diagonal-lines--docs" />

## Installation

<Steps>
<Step>Run the following command</Step>

It will create a new file called `diagonal-lines.tsx` inside the `components/animata/background` directory.

```bash
mkdir -p components/animata/background && touch components/animata/background/diagonal-lines.tsx
```

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

```jsx file=<rootDir>/animata/background/diagonal-lines.tsx

```

</Steps>

## Credits

Built by [hari](https://github.com/hari)

Based on [pattern.css](https://bansal.io/pattern-css) by [bansal.io](https://bansal.io/)
